package com.cmwa.solution.business.prdSetup.news.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.cmwa.solution.annotation.MybatisDao;
import com.cmwa.solution.base.entity.SearchParam;
import com.cmwa.solution.business.prdSetup.news.entity.NewsInfoCommonVo;
import com.cmwa.solution.business.prdSetup.news.entity.NewsInfoHotVo;

/**
 * 通用资讯信息表数据访问层
 * 
 * @author ex-hejm
 * @date 2019-01-21 14:59:01
 */
@MybatisDao
public interface NewsInfoDao {

	public void insertNewsInfoCommon(NewsInfoCommonVo newsInfoCommon);
	
	public void physicDeleteNewsInfoCommonById(@Param("id") String id);
	
	public void logicDeleteNewsInfoCommonById(@Param("id") String id);
	
	public void updateNewsInfoCommonById(NewsInfoCommonVo newsInfoCommon);
	
	public NewsInfoCommonVo getNewsInfoCommonById(@Param("id") String id);
	
	public List<NewsInfoCommonVo> newsInfoCommonListPage(SearchParam sp);

	public List<NewsInfoHotVo> newsInfoHotListPage(SearchParam sp);

	/**
	 * 新增热点产品
	 * @author ex-hejm
	 * @date 2019年1月23日上午11:05:14
	 * @param news
	 */
	public void insertNewsInfoHot(NewsInfoHotVo news);

	/**
	 * 热点产品详情
	 * @author ex-hejm
	 * @date 2019年1月23日下午1:45:52
	 * @param id
	 * @return
	 */
	public NewsInfoHotVo getNewsInfoHotById(@Param("id") String id);

	public List<NewsInfoCommonVo> homeNews();
}
